package edu.sias.hyznxfapi.controller;


import edu.sias.hyznxfapi.textModification.textRewriting.TextRewriting;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 文本改写
 */
@RestController
@RequestMapping("/xfapi/changeText")
public class TextRewritingController {
    @GetMapping("/{text}")
    public String getText(@PathVariable("text") String text) {
        String result = new TextRewriting().getTEXT(text);
        System.out.println(result);
        return result;
    }
}
